package com.example.demo.service.impl;

import com.example.demo.VO.ClazzExtra;
import com.example.demo.core.AbstractService;
import com.example.demo.core.Service;
import com.example.demo.dao.ClazzMapper;
import com.example.demo.model.Clazz;
import com.example.demo.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Kevin
 * @date 2020/4/19 16:39
 */
@org.springframework.stereotype.Service
@Transactional
public class ClazzServiceImpl extends AbstractService<Clazz> implements ClazzService {
    @Resource
    private ClazzMapper clazzMapper;

    @Override
    public ClazzExtra queryClazzInfoWithStudent(Integer id) {
        return clazzMapper.queryClazzInfoWithStudent(id);
    }
}
